package com.briup.jz.service;

import com.briup.jz.bean.Address;
import com.briup.jz.bean.extend.AddressExtend;
import com.briup.jz.utils.CustomerException;

import java.util.List;

/**
 * @program: jz
 * @description: 地址业务接口
 * @author: catmilko
 * @create: 2020/6/12 15:56
 **/

public interface IAddressService {

    List<Address> findAll();

    Address findById(long id);

    List<Address> findByUserId(long userId);

    void deleteById(long id) throws CustomerException;

    void saveOrUpdate(Address address) throws CustomerException;

    List<AddressExtend> findAllWithUser();
}
